package com.srd.phone.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.shengrongdai.srd.R;
import com.srd.phone.utils.UserUtils;

/**
 * 邮箱设置
 */
public class SafeEmailManageActivity extends BaseActivity implements View.OnClickListener {

    private TextView tv_email;
    private Button bt_update_email;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_safe_email_manage);
        initView();
    }


    @Override
    public void initView() {
        tv_common_title.setText("邮箱设置");
        tv_email = (TextView)findViewById(R.id.tv_email);
        bt_update_email = (Button)findViewById(R.id.bt_update_email);
        bt_update_email.setOnClickListener(this);
    }

    @Override
    public void initData() {
        String email = UserUtils.getUserInfo().email;
        tv_email.setText(email);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt_update_email:
                gotoActivity(SafeBoundEmailActivity.class);
                break;
        }
    }
}
